﻿CREATE TABLE [dbo].[Employee_Entry] (
    [id]             INT              IDENTITY (1, 1) NOT FOR REPLICATION NOT NULL,
    [Eid]            INT              NULL,
    [TEnumber]       NVARCHAR (50)    NULL,
    [TDepartmentId]  NVARCHAR (10)    NULL,
    [TPCompanyId]    INT              CONSTRAINT [DF_Employee_Entry_TPCompanyId] DEFAULT ((0)) NULL,
    [TPostCategory]  INT              CONSTRAINT [DF_Employee_Entry_TPostCategory] DEFAULT ((0)) NULL,
    [TPostId]        INT              CONSTRAINT [DF_Employee_Entry_TPostId] DEFAULT ((0)) NULL,
    [TGradeId]       INT              CONSTRAINT [DF_Employee_Entry_TGradeId] DEFAULT ((0)) NULL,
    [TPluralist]     NVARCHAR (50)    NULL,
    [TRtx]           NVARCHAR (50)    NULL,
    [TWageNumber]    NVARCHAR (50)    NULL,
    [TWageCardNo]    NVARCHAR (50)    NULL,
    [TRuzhiDate]     DATETIME         NULL,
    [TProbationFrom] DATETIME         NULL,
    [TProbationTo]   DATETIME         NULL,
    [TZhiWu]         NVARCHAR (50)    NULL,
    [Proposer]       NVARCHAR (50)    NULL,
    [ApplionTime]    DATETIME         NULL,
    [Audit]          BIT              CONSTRAINT [DF_Employee_Entry_Audit] DEFAULT ((0)) NULL,
    [Memo]           VARCHAR (MAX)    NULL,
    [AuditPerson]    NVARCHAR (50)    NULL,
    [AuditTime]      DATETIME         NULL,
    [TXZJB]          NVARCHAR (50)    NULL,
    [IsCore]         BIT              CONSTRAINT [DF_Employee_Entry_IsCore] DEFAULT ((0)) NULL,
    [GID]            UNIQUEIDENTIFIER CONSTRAINT [DF_Employee_Entry_GID_1] DEFAULT (newid()) NULL,
    CONSTRAINT [PK_Employee_Entry] PRIMARY KEY CLUSTERED ([id] ASC)
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'是否核心人员', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'Employee_Entry', @level2type = N'COLUMN', @level2name = N'IsCore';

